<tem>

    <!-- 用户编辑模板 -->
    <div class="template xd-template" id="changePassTpl">
        <div class="panel-body no-tb-padder">
            <form class="bs-example form-horizontal xs-form" id="changePassForm">
                <div class="form-group">
                    <label class="col-lg-3 control-label required">旧密码：</label>
                    <div class="col-lg-8">
                        <input class="form-control input-sm" type="password" reg="notempty,minLength:6,maxLength:20,password"
                        message="{notempty:'旧密码不允许为空,且首尾不能有空格',minLength:format('请输入6-20位密码'),maxLength:format('请输入6-20位密码')}" data-id="oldPassword">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-3 control-label required">新密码：</label>
                    <div class="col-lg-8">
                        <input type="password" class="form-control input-sm" data-id="newPassword" reg="notempty,minLength:6,maxLength:20,password"
                            message="{notempty:'新密码不允许为空,且首尾不能有空格',minLength:format('请输入6-20位密码'),maxLength:format('请输入6-20位密码')}" id="newPwd" onpaste="return false;">
                            <!-- onpaste="return false;" -->
                    </div>
                </div>
                <div class="form-group" data-type="pwd">
                    <label class="col-lg-3 control-label required">确认密码：</label>
                    <div class="col-lg-8">
                        <input type="password" class="form-control input-sm" data-id="newPassword" reg="notempty,equalsTo:newPwd,password" message="{notempty:'确认密码不能为空，且首尾不能有空格',equalsTo:format('与新密码不一致')}">
                    </div>
                </div>
            </form>
        </div>
    </div>

</tem>